<template>
	<view class="notice">
		<view class="button " :class="'bg-' + themeColor.name" hover-class="active" @click="toUrl('/pages/componentsC/twoDimensionalArray')">
			二维数组
		</view>
		<view class="button" :class="'bg-' + themeColor.name" hover-class="active" @click="toUrl('/pages/componentsC/ref')">
			ref
		</view>
		<view class="button" :class="'bg-' + themeColor.name" hover-class="active" @click="toUrl('/pages/componentsC/mixin')">
			mixin
		</view>
		<view class="button" :class="'bg-' + themeColor.name" hover-class="active" @click="toStore">
			vuex
		</view>
		<view class="button" :class="'bg-' + themeColor.name" hover-class="active" @click="toUrl('/pages/componentsC/set')">
			set
		</view>
		<view class="button" :class="'bg-' + themeColor.name" hover-class="active" @click="toUrl('/pages/componentsC/AsyncAwait')">
			async和await
		</view>
		<!-- <tabbar :list="vuex_tabbar" active-color="#976bf8" inactive-color="#C0C4CC"></tabbar> -->
	</view>
</template>

<script>
	import { mapState, mapMutations} from 'vuex'
	export default{
		data(){
			return{
			}
		},
		computed:{
			...mapState(['hasLogin','userInfo','vuex_tabbar'])
		},
		onLoad() {
		},
		methods:{
			toUrl(url){//跳转链接
				uni.navigateTo({
					url:url
				})
			},
			toStore(){
				let name = this.$store.state.name	
				console.log(name)
			}
		}
	}
</script>

<style>
	page{
		background: #F5F5F5;
		font-size: 30rpx;
	}
	.notice{
		font-size: 30rpx;
		padding: 0 30rpx;
		padding-top: 20rpx;
	}
	.button{
		
		border-radius: 20rpx;
		height: 70rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		color: #FFFFFF;
		margin-bottom: 20rpx;
		
	}
	.active{
		background: #999999;
	}
	
	.title{
		text-align: center;
		padding: 20rpx;
	}
	.ref{
		border: 1px #ccc solid;
	}
</style>
